<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>精美图片展示</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }
        
        .container {
            max-width: 1000px;
            width: 100%;
            background: rgba(255, 255, 255, 0.9);
            border-radius: 20px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
            overflow: hidden;
            padding: 30px;
        }
        
        header {
            text-align: center;
            margin-bottom: 30px;
        }
        
        h1 {
            color: #333;
            font-size: 2.5rem;
            margin-bottom: 10px;
        }
        
        .description {
            color: #666;
            font-size: 1.1rem;
            max-width: 600px;
            margin: 0 auto;
        }
        
        .gallery {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .image-card {
            background: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            cursor: pointer;
        }
        
        .image-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
        }
        
        .image-placeholder {
            height: 180px;
            background: #f0f0f0;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #888;
            font-size: 1.2rem;
        }
        
        .image-info {
            padding: 15px;
        }
        
        .image-info h3 {
            color: #333;
            margin-bottom: 8px;
        }
        
        .image-info p {
            color: #666;
            font-size: 0.9rem;
        }
        
        .image-link {
            display: inline-block;
            margin-top: 10px;
            color: #2575fc;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.2s;
        }
        
        .image-link:hover {
            color: #6a11cb;
        }
        
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.9);
            z-index: 100;
            justify-content: center;
            align-items: center;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .modal.active {
            display: flex;
            opacity: 1;
        }
        
        .modal-content {
            max-width: 90%;
            max-height: 90%;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 25px rgba(255, 255, 255, 0.2);
        }
        
        .modal-content img {
            width: 100%;
            height: auto;
            display: block;
        }
        
        .close-btn {
            position: absolute;
            top: 20px;
            right: 20px;
            color: white;
            font-size: 30px;
            cursor: pointer;
            background: rgba(0, 0, 0, 0.5);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: background 0.2s;
        }
        
        .close-btn:hover {
            background: rgba(0, 0, 0, 0.7);
        }
        
        footer {
            text-align: center;
            margin-top: 30px;
            color: #666;
            font-size: 0.9rem;
        }
        
        @media (max-width: 768px) {
            .container {
                padding: 20px;
            }
            
            h1 {
                font-size: 2rem;
            }
            
            .gallery {
                grid-template-columns: 1fr;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <header>
            <h1>自然风光图片展</h1>
            <p class="description">探索世界各地的壮丽自然景观。点击下方链接欣赏高清大图。</p>
        </header>
        
        <div class="gallery">
            <div class="image-card">
                <div class="image-placeholder">山峦图片</div>
                <div class="image-info">
                    <h3>雄伟山峦</h3>
                    <p>高耸入云的山峰，覆盖着皑皑白雪，展现大自然的壮丽。</p>
                    <a href="https://images.unsplash.com/photo-1506905925346-21bda4d32df4?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80" class="image-link" target="_blank">查看大图</a>
                </div>
            </div>
            
            <div class="image-card">
                <div class="image-placeholder">海洋图片</div>
                <div class="image-info">
                    <h3>碧蓝海洋</h3>
                    <p>清澈的海水拍打着金色的沙滩，带来宁静与平和。</p>
                    <a href="https://images.unsplash.com/photo-1507525428034-b723cf961d3e?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80" class="image-link" target="_blank">查看大图</a>
                </div>
            </div>
            
            <div class="image-card">
                <div class="image-placeholder">森林图片</div>
                <div class="image-info">
                    <h3>神秘森林</h3>
                    <p>茂密的森林中阳光透过树叶洒下，创造出一片神秘而宁静的世界。</p>
                    <a href="https://images.unsplash.com/photo-1448375240586-882707db888b?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80" class="image-link" target="_blank">查看大图</a>
                </div>
            </div>
        </div>
        
        <footer>
            <p>© 2023 自然风光图片展 | 所有图片均来自 Unsplash</p>
        </footer>
    </div>

    <div class="modal">
        <div class="close-btn">&times;</div>
        <div class="modal-content">
            <img src="" alt="大图预览">
        </div>
    </div>

    <script>
        document.addEventListener('DOMContentLoaded', function() {
            const links = document.querySelectorAll('.image-link');
            const modal = document.querySelector('.modal');
            const modalImg = document.querySelector('.modal-content img');
            const closeBtn = document.querySelector('.close-btn');
            
            links.forEach(link => {
                link.addEventListener('click', function(e) {
                    e.preventDefault();
                    const imgUrl = this.getAttribute('href');
                    modalImg.setAttribute('src', imgUrl);
                    modal.classList.add('active');
                });
            });
            
            closeBtn.addEventListener('click', function() {
                modal.classList.remove('active');
            });
            
            modal.addEventListener('click', function(e) {
                if (e.target === modal) {
                    modal.classList.remove('active');
                }
            });
        });
    </script>
</body>
</html>